package com.yang.project.base.exception;

public class ExceptionTest {
    public static void main(String[] args) {
        m1();
    }

    public static void m1() {
        try {
            System.out.println("hello world");
            throw new MyException("自定义异常");

        } catch (MyException e) {
            System.out.println(e.getMessage());
        } finally {

        }
    }
}
